package com.overseasShopping.Base.DAO;

import java.util.List;

import com.overseasShopping.pojo.OrderList;

public interface OrderListDAO extends BaseDAO<OrderList>{
	
	//根据订单号查询
	public OrderList getOrder(String orderId);
	//生成订单
	public void addOrder(OrderList order);
	//查询所有交易
	public List<OrderList> getUserIdList(String buyUserId,String saleUserId);
	//根据买家ID查询
	public List<OrderList> getBuyUserIdList(String buyUserId);
	//根据卖家ID查询
	public List<OrderList> getSaleUserIdList(String saleUserId);
	//根据交易状态查询
	public List<OrderList> getStateList(int state);
	public List<OrderList> getBuyStateList(int state,String buyUserId);
	public List<OrderList> getSaleStateList(int state,String saleUserId);
	
}